package com.itheima.health.controller.user;

import com.itheima.health.common.MessageConst;
import com.itheima.health.pojo.entity.Setmeal;
import com.itheima.health.pojo.result.Result;
import com.itheima.health.service.SetMealService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/mobile/setmeal")
@Slf4j
public class SetMealController26 {
    @Autowired
    private SetMealService setMealService;
    @RequestMapping("/getSetmeal")
    public Result selectAll(){
        List<Setmeal> setmealList = setMealService.getSetmeal();
        return new Result(true, MessageConst.QUERY_SETMEAL_SUCCESS,setmealList);
    }
}
